package com.bh.extend.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.core.domain.BhtmsBaseEntityNoCode;
import com.bh.dispatch.domain.JcDispatch;
import com.bh.order.domain.JcOrder;
import com.bh.shipment.domain.JcShipment;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 异常对象 jc_abnormal
 *
 * @author slx
 * @date 2023-04-24
 */
@TableName("jc_abnormal")
@Data
public class JcAbnormal extends BhtmsBaseEntityNoCode implements Serializable {
    


    private Integer number;

    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /**
     * 异常类型 0订单 1运输单
     */
    private Integer type;


    private Long jcOrderId;

    @TableField(exist = false)
    private JcOrder jcOrder;


    private Long jcOrganizationId;

    @TableField(exist = false)
    private String jcOrganizationName;


    private Long jcShipmentId;

    @TableField(exist = false)
    private JcShipment jcShipment;

    private Long jcDispatchId;

    @TableField(exist = false)
    private JcDispatch dispatch;

    @TableField(exist = false)
    private List<JcAbnormalDetail> jcAbnormalDetailList;
}
